package routes

import (
	"kubem/middleware"
	"kubem/routes/auth"

	"github.com/gin-gonic/gin"
)

func SetupRoutes() *gin.Engine {
	r := gin.Default()
	// gin.SetMode(gin.ReleaseMode)
	ag := r.Group("/api")
	r.Use(middleware.JWTAuthMiddleware())
	auth.RegistrySubRoutes(ag)
	return r
}
